package com.aidansmeaton.weightmanager.util;

import com.aidansmeaton.weightmanager.R;

/**
 * This class provides utility functions for formatting
 * time strings, such as ISO-8601 format into a
 * "human readable" format, and vice versa.
 * 
 * @author Aidan Smeaton
 */
public class ImageHelper {
	
	public static int GREEN_TINY = 1;
	public static int GREEN_SMALL = 2;
	public static int GREEN_MEDIUM = 3;
	public static int GREEN_LARGE = 4;
	public static int ORANGE_TINY = 5;
	public static int ORANGE_SMALL = 6;
	public static int ORANGE_MEDIUM = 7;
	public static int ORANGE_LARGE = 8;
	public static int RED_TINY = 9;
	public static int RED_SMALL = 10;
	public static int RED_MEDIUM = 11;
	public static int RED_LARGE = 12;
	public static int PURPLE = 13;
	
	public static int getPlate(int value){
		switch (value){
		case 1:	return R.drawable.ic_food_green_1;
		case 2: return R.drawable.ic_food_green_2;
		case 3: return R.drawable.ic_food_green_3;
		case 4: return R.drawable.ic_food_green_4;
		case 5: return R.drawable.ic_food_orange_1;
		case 6: return R.drawable.ic_food_orange_2;
		case 7: return R.drawable.ic_food_orange_3;
		case 8: return R.drawable.ic_food_orange_4;
		case 9: return R.drawable.ic_food_red_1;
		case 10: return R.drawable.ic_food_red_2;
		case 11: return R.drawable.ic_food_red_3;
		case 12: return R.drawable.ic_food_red_4;
		case 13: return R.drawable.ic_food_purple;
		default: return R.drawable.ic_food_grey;
		}
	}
	
	public static int getEmoticon(int emoticon_number){
		switch (emoticon_number){
		case -1: return 0;
		case 0:	return R.drawable.ic_emo_00;
		case 1:	return R.drawable.ic_emo_01;
		case 2: return R.drawable.ic_emo_02;
		case 3: return R.drawable.ic_emo_03;
		case 4: return R.drawable.ic_emo_04;
		case 5: return R.drawable.ic_emo_05;
		case 6: return R.drawable.ic_emo_06;
		case 7: return R.drawable.ic_emo_07;
		case 8: return R.drawable.ic_emo_08;
		case 9: return R.drawable.ic_emo_09;
		case 10: return R.drawable.ic_emo_10;
		case 11: return R.drawable.ic_emo_11;
		case 12: return R.drawable.ic_emo_12;
		case 13: return R.drawable.ic_emo_13;
		case 14: return R.drawable.ic_emo_14;
		case 15: return R.drawable.ic_emo_15;
		case 16: return R.drawable.ic_emo_16;
		case 17: return R.drawable.ic_emo_17;
		default: return R.drawable.ic_emo_00;
		}
	}

	public static String getAnnotationForEmoticon(int emoticon_number) {
		switch (emoticon_number){
		case 0:	return "Raging!";
		case 1:	return "Waaah!";
		case 2: return "Feeling down";
		case 3: return "Oh no!";
		case 4: return "Eek...";
		case 5: return "I'm bored!";
		case 6: return "I don't know";
		case 7: return "Oops...";
		case 8: return "Meh";
		case 9: return "Feeling good";
		case 10: return "Wayhey!";
		case 11: return "I was good!";
		case 12: return "Feeling smart!";
		case 13: return "Pretty chuffed";
		case 14: return "Feeling sexy!";
		case 15: return "Hahaa!";
		case 16: return "Feeling great!";
		case 17: return "Feeling naughty!";
		default: return "How do you feel?";
		}
	}
	
}
